#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

from __future__ import print_function

import gvcode

from flask import Flask
app = Flask(__name__)


@app.route("/")
def index():
    return "Server is running"

@app.route("/get/captcha")
def gen__captcha():
    b64code, vcode= gvcode.base64()
    print(vcode)
    return b64code
